<%@ page import="com.app.ywms.rk.xhjhd.Yxhjhd" %>

<g:hiddenField name="id" value="${yxhjhdInstance?.id}" />
<g:hiddenField name="version" value="${yxhjhdInstance?.version}" />
<g:hiddenField name="businessType.id" value="${yxhjhdInstance?.businessType?.id}"/>
<g:hiddenField name="billTypeCode" value="YXHJHD" />
<g:hiddenField name="sourceBillType.id" value="${yxhjhdInstance?.sourceBillType?.id}"></g:hiddenField>
<g:hiddenField name="sourceBillTypeCode" value="${yxhjhdInstance?.sourceBillTypeCode}"></g:hiddenField>
<p style="color: red">基本资料</p><hr>
<span id="divbusinessName${pageId}" class="fieldcontain  " >
    <label for="businessName"  >
        <g:message code="yxhjhd.businessName.label" default="billTypeName" />

    </label>
    <input class="myui" id="businessName"  value="${yxhjhdInstance?.businessType?.name}"  readonly=""/>

</span>




<span id="divbillno${pageId}" class="fieldcontain  ">
    <label for="billno">
        <g:message code="yxhjhd.billno.label" default="Billno" />

    </label>
    <g:textField class="easyui-validatebox myui" name="billno" value="${yxhjhdInstance?.billno}" readonly="true"/>
    <div id="billno_message" hidden="" name="message" class="errors" role="status"></div>
</span>
<span id="divzxlx${pageId}" class="fieldcontain  ">
    <label for="zxlx">
        <g:message code="yxhjhd.zxlx.label" default="Zxlx" />

    </label>
    <input id="zxlx" value="卸货" class="myui" readonly="true">
    <input name="zxlx" id="zxlx" value="0" hidden="true">
    <div id="zxlx_message" hidden="" name="message" class="errors" role="status"></div>
</span>

<span id="divmyxz${pageId}" class="fieldcontain  ">
    <label for="myxz">
        <g:message code="yxhjhd.myxz.label" default="Myxz" />

    </label>
    <g:select name="myxz"   from="[[index:0,value:'内贸'],[index:1,value:'外贸']]" optionKey="index" optionValue="value"  value="${yhyjhInstance?.myxz}" required="true" />
    <div id="myxz_message" hidden="" name="message" class="errors" role="status"></div>
</span>

<span id="divyykhqr${pageId}" class="fieldcontain  ">
    <label for="yykhqr">
        <g:message code="yxhjhd.yykhqr.label" default="Yykhqr" />

    </label>
    <g:checkBox name="yykhqr" value="${yxhjhdInstance?.yykhqr}" />
    <div id="yykhqr_message" hidden="" name="message" class="errors" role="status"></div>
</span>

<p>船舶基本资料</p>
<hr>

<span id="divshipdoc${pageId}" class="fieldcontain  required">
    <label for="shipdoc${pageId}">
        <g:message code="yxhjhd.shipdoc.label" default="Shipdoc" />
        <span class="required-indicator">*</span>
    </label>
    <g:refTemplate code="refYshipdoc" model="[id:'shipdoc',name: 'shipdoc.id',value:yxhjhdInstance?.shipdoc?.id,required:true]"></g:refTemplate>
    <div id="shipdoc_message" hidden="" name="message" class="errors" role="status"></div>
</span>


<span id="divyjdgrq${pageId}" class="fieldcontain  required">
    <label for="yjdgrq">
        <g:message code="yxhjhd.yjdgrq.label" default="Yjdgrq" />
        <span class="required-indicator">*</span>
    </label>
    <input id="yjdgrq" name="yjdgrq" class="easyui-datebox" date required="true" value="${yxhjhdInstance?.yjdgrq?.getTime()}">
    <div id="yjdgrq_message" hidden="" name="message" class="errors" role="status"></div>
</span>

<span id="divcddw${pageId}" class="fieldcontain  ">
    <label for="cddw">
        <g:message code="yxhjhd.cddw.label" default="Cddw" />

    </label>
    <g:refTemplate id="cddw" code="refBdCustomer" model="[id:'cddw',name:'cddw.id',value:yxhjhdInstance?.cddw?.id]"></g:refTemplate>
    <div id="cddw_message" hidden="" name="message" class="errors" role="status"></div>
</span>


<span id="divlygk${pageId}" class="fieldcontain  ">
    <label for="lygk">
        <g:message code="yxhjhd.lygk.label" default="Lygk" />

    </label>
    <g:textField class="easyui-validatebox myui" name="lygk" value="${yxhjhdInstance?.lygk}"/>
    <div id="lygk_message" hidden="" name="message" class="errors" role="status"></div>
</span>

<span id="divddtzsj${pageId}" class="fieldcontain  ">
    <label for="ddtzsj">
        <g:message code="yxhjhd.ddtzsj.label" default="Ddtzsj" />

    </label>
    <g:textField class="easyui-validatebox myui" name="ddtzsj" value="${yxhjhdInstance?.ddtzsj}"/>
    <div id="ddtzsj_message" hidden="" name="message" class="errors" role="status"></div>
</span>

<span id="divfsdx${pageId}" class="fieldcontain  ">
    <label for="fsdx">
        <g:message code="yxhjhd.fsdx.label" default="Fsdx" />

    </label>
    <g:checkBox name="fsdx" value="${yxhjhdInstance?.fsdx}" />
    <div id="fsdx_message" hidden="" name="message" class="errors" role="status"></div>
</span>


<p style="color: red">其他信息</p>
<hr>

<span id="divmaker${pageId}" class="fieldcontain  ">
    <label for="maker">
        <g:message code="yxhjhd.maker.label" default="Maker" />

    </label>
    <input id="maker" value="${yxhjhdInstance?.maker?.userRealName}" class="myui" readonly="true">
    <div id="maker_message" hidden="" name="message" class="errors" role="status"></div>
</span>

<span  class="fieldcontain  ">
    <label for="makeDate">
        <g:message code="yxhjhd.makedate.label" default="Makedate" />

    </label>
    <input id="makeDate" name="makeDate" class="myui" value="${yxhjhdInstance?.makeDate?.getTime()}" date readonly="true">

</span>

<span id="divsigner${pageId}" class="fieldcontain  ">
    <label for="signer">
        <g:message code="yxhjhd.signer.label" default="Signer" />

    </label>
    <input id="signer" value="${yxhjhdInstance?.checker?.userRealName}" class="myui" readonly="true">
</span>
<span id="divsigndate${pageId}" class="fieldcontain  ">
    <label for="checkDate_">
        <g:message code="yxhjhd.signdate.label" default="Signdate" />

    </label>
    <input id="checkDate_" name="checkDate_" class="myui" value="${yxhjhdInstance?.checkDate?.getTime()}" date readonly="true">
</span>

<span id="divqtms${pageId}" class="fieldcontain  ">
    <label for="qtms">
        <g:message code="yxhjhd.qtms.label" default="Qtms" />

    </label>
    <g:textField class="easyui-validatebox myui" name="qtms" value="${yxhjhdInstance?.qtms}"/>
</span>

<span id="divnote${pageId}" class="fieldcontain  ">
    <label for="note">
        <g:message code="yxhjhd.note.label" default="Note" />

    </label>
    <g:textField class="easyui-validatebox myui" name="note" value="${yxhjhdInstance?.note}"/>
    <div id="note_message" hidden="" name="message" class="errors" role="status"></div>
</span>





